#!/bin/sh
mkdir /usr/losu
mkdir /usr/losu/inc
mkdir /usr/losu/inc/洛书
mkdir /usr/losu/lvm
mkdir /usr/losu/lsi
cd /etc/lpt/installed/losu
cd bin
g++ -std=c++11 -Ofast -o losu losu.cpp -ldl -lpthread
g++ -std=c++11 -Ofast -o lpk lpk.cpp -ldl -lpthread
g++ -std=c++11 -Ofast -o lpk_compiler lpk_compiler.cpp
g++ -std=c++11 -Ofast -o mlosuc mlosuc.cpp
g++ -std=c++11 -Ofast -o losuc losuc.cpp
g++ -std=c++11 -Ofast -o losuh losuh.cpp
g++ -std=c++11 -Ofast -o losudb losudb.cpp -ldl -lpthread

cp ./losu          /usr/bin/
cp ./losuc         /usr/bin/
cp ./mlosuc        /usr/bin/
cp ./lpk_compiler  /usr/bin/
cp ./lpk           /usr/bin/
cp ./losuh         /usr/bin/
cp ./losudb        /usr/bin/
cp ./lpk           /usr/bin/洛书
cd ../
cd lib
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_io.lsd losuvm_io.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_file.lsd losuvm_file.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_mark.lsd losuvm_mark.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_math.lsd losuvm_math.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_md5.lsd losuvm_md5.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_rand.lsd losuvm_rand.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_string.lsd losuvm_string.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_time.lsd losuvm_time.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_httpd.lsd losuvm_httpd.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_gpio.lsd losuvm_gpio.cpp
g++ -std=c++11 -Ofast -shared -fPIC -o losuvm_webui.lsd losuvm_webui.cpp
cp *.lsd /usr/losu/lvm/
cd ../
cd inc
losuc 加密器
losuc MD转换器
losuc 标准流
losuc 程序
losuc 时间
losuc 数学
losuc 数组
losuc 随机数
losuc 文件
losuc 线程
losuc 字符串
losuc 服务器
losuc 错误处理
losuc 引脚
losuc 通用引脚
losuc 网页
cp *.lsc /usr/losu/inc/洛书/


